<?php
/*
Template Name: Risultato ricerca
*/
?><?php get_header(); ?>
	<div id="content-wide">
	<?php if (have_posts()) : ?>
		<?php while (have_posts()) : the_post(); ?>
        
                <div class="boxpost">
                <h3>
                <?php the_title(); ?></h3>
				<div class="entry">
					<?php the_content('read more &raquo;'); ?>
				</div>
			</div>
	
		<?php endwhile; ?>
	<?php else : ?>

		<p>No Result</p>
		<p class="center"><?php _e("!Failed!"); ?></p>
		<div id ="search"><?php include (TEMPLATEPATH . "/searchform.php"); ?></div>

	<?php endif; ?>
	<!-- Google CSE code begins -->
	<form id="searchbox_012793609149363494046:hy_d1i10yoe" onsubmit="return false;">
	  <input type="text" name="q" size="40"/>
	  <input type="submit" value="Search"/>
	</form>
	<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_012793609149363494046%3Ahy_d1i10yoe&lang=it"></script>

	<div id="results_012793609149363494046:hy_d1i10yoe" style="display:none">
	  <div class="cse-closeResults"> 
	    <a>&times; close</a>
	  </div>
	  <div class="cse-resultsContainer"></div>
	</div>

	<style type="text/css">
	@import url(http://www.google.com/cse/api/overlay.css);
	</style>

	<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAc6USO6Y39AVW6D1PDmGimRSTuPECBFKuMjxulgxMHA_imEeijRRjA_QcSxfhSSmKAm1CnX9UNgFIuA&hl=it" type="text/javascript"></script>
	<script src="http://www.google.com/cse/api/overlay.js"></script>
	<script type="text/javascript">
	function OnLoad() {
	  new CSEOverlay("012793609149363494046:hy_d1i10yoe",
	                 document.getElementById("searchbox_012793609149363494046:hy_d1i10yoe"),
	                 document.getElementById("results_012793609149363494046:hy_d1i10yoe"));
	}
	GSearch.setOnLoadCallback(OnLoad);
	</script>
	<!-- Google CSE Code ends -->
</div>
<?php get_footer(); ?>